// 云函数入口文件
const cloud = require('wx-server-sdk')
const got = require('got'); 

cloud.init()

// 云函数入口函数
exports.main = async (event, context) => {
  var infosbody= {
    limit:100,
    WEBJSESSIONID:event.WEBJSESSIONID,
    token:event.token
  };
  debugger
  const response = await got(event.url, {
    method:'POST',
    headers: {
      'Content-Type':"application/json"
    },
    body:JSON.stringify(infosbody) 
  })
  return response.body;
}